Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflicting types for ia32_sys_call_table and sys_call_table error #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkamagui
Copy link

If the host uses gcc 6 compiler, the compiler shows error as follows.

/home/user/suterusu/common.h:44:23: error: conflicting types for ‘sys_call_table’
extern unsigned long *sys_call_table;
^~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/elf.h:12:0,
from /usr/src/linux-headers-4.9.0-3-common/include/linux/elf.h:4,
from /usr/src/linux-headers-4.9.0-3-common/include/linux/module.h:15,
from /home/user/suterusu/common.h:1,
from /home/user/suterusu/main.c:1:
/usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/syscall.h:26:29: note: previous declaration of ‘sys_call_table’ was here
extern const sys_call_ptr_t sys_call_table[];
^~~~~~~~~~~~~~

To fix this error, I change names of the variables.
Signed-off-by: Seunghun Han [email protected]

If the host uses gcc 6 compiler, the compiler shows error as follows.
>/home/user/suterusu/common.h:44:23: error: conflicting types for ‘sys_call_table’
> extern unsigned long *sys_call_table;
>                       ^~~~~~~~~~~~~~
>In file included from /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/elf.h:12:0,
>                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/elf.h:4,
>                 from /usr/src/linux-headers-4.9.0-3-common/include/linux/module.h:15,
>                 from /home/user/suterusu/common.h:1,
>                 from /home/user/suterusu/main.c:1:
>/usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/syscall.h:26:29: note: previous declaration of ‘sys_call_table’ was here
> extern const sys_call_ptr_t sys_call_table[];
>                             ^~~~~~~~~~~~~~

To fix this error, I change names of the variables.
Signed-off-by: Seunghun Han <[email protected]>
@jacksgt
Copy link

jacksgt commented Jul 31, 2018

Thanks for this patch, works for me! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants